home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
L' Effet Pommier 3
/
L'Effet Pommier - Volume 03.iso
/
Programmation
/
Gooey1.3.1
/
C Templates
/
InitExit.c
< prev
next >
Wrap
Text File
|
1994-04-24
|
4KB
|
132 lines
$$Message User InitExit, u:InitExit$Prototype.name$.h
$$File u:InitExit$Prototype.name$.h
/* $CopyRight$ */
/* InitExit$Prototype.name$ Program Init and Exit routines
File name: InitExit$Prototype.name$.h
Function: This module contains the extra program initialization
routine as well as the program exit and cleanup routine.
History: $Date$ Original by $Author$
*/
/* ======================================================= */
/* ======================================================= */
#ifdef __cplusplus
extern "C" {
#endif
void OpenSplashWindow(void); /* Open spash or personalization window */
void CloseSplashWindow(void); /* Close spash or personalization window */
/* Program initializations */
void ApplInit$Prototype.name$(void);
/* Program exit and cleanup */
void ApplExit$Prototype.name$(void);
#ifdef __cplusplus
}
#endif
/* ======================================================= */
/* ======================================================= */
$$CloseFile
$$Message User InitExit, u:InitExit$Prototype.name$.c
$$File u:InitExit$Prototype.name$.c
/* $CopyRight$ */
/* InitExit$Prototype.name$ Program Init and Exit routines
File name: InitExit$Prototype.name$.c
Function: This module contains the extra program initialization
routine as well as the program exit and cleanup routine.
History: $Date$ Original by $Author$
*/
#include "mmCommon$Prototype.name$.h" /* Common */
#include "Common$Prototype.name$.h" /* Common */
#include "InitExit$Prototype.name$.h" /* This file */
#pragma segment MainHooks
/* ======================================================= */
/* ======================================================= */
/* Routine: AE_OpenedApplication */
/* Purpose: Called one time, when this program is opened. */
OSErr AE_OpenedApplication(AppleEvent *message,AppleEvent *reply,long refcon)
{
return(noErr);
}
/* ======================================================= */
/* Routine: AE_QuittingApplication */
/* Purpose: Called one time, when this program is quit. */
OSErr AE_QuittingApplication(AppleEvent *message,AppleEvent *reply,long refcon)
{
return(noErr);
}
/* ======================================================= */
/* Routine: OpenSplashWindow */
/* Purpose: Open spash or personalization window */
void OpenSplashWindow(void)
{
}
/* ======================================================= */
/* Routine: CloseSplashWindow */
/* Purpose: Close spash or personalization window */
void CloseSplashWindow(void)
{
}
/* ======================================================= */
/* Routine: ApplInit$Prototype.name$ */
/* Purpose: Extra program initialization */
/* WNE: boolean, This variable set to TRUE says the WaitNextEvent trap is available, */
/* If we want to use that trap then we do nothing to this variable. If we do not */
/* want to use that trap, and use GetNextEvent instead, then we change this */
/* variable to FALSE. */
/* SleepValue:integer, This is only valid if WNE is true. This is the default sleep */
/* value to use with WaitNextEvent, it is set to 40. This can be changed to any */
/* value desired at any time. */
void ApplInit$Prototype.name$(void) /* Initialization */
{
}
/* ======================================================= */
/* Routine: ApplExit$Prototype.name$ */
/* Purpose: Extra program cleanup upon exit from our program */
/* This is where left over buffers are released and any open files are closed */
void ApplExit$Prototype.name$(void) /* Exit and cleanup */
{
}
/* ======================================================= */
/* ======================================================= */
$$CloseFile